﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的任务</title>
<style>
th {
	border-bottom: 2px solid #ccc;
}

td {
	border-bottom: 1px solid #ccc;
	text-align: center
}

h1 {
	text-align: center
}

tr td:last-child {
	text-align: left;
	width: 300px;
}

tr td:last-child a:first-child {
	margin-left: 50px
}
</style>
<script>
	
</script>

</head>
<body>
	<h1>我的任务</h1>

	<table align="center" width="60%" cellspacing="0px">

		<tbody>
			<tr>
				<th>编号</th>
				<th>标题</th>
				<th>报销金额</th>
				<th>报销内容</th>
				<th>申请时间</th>
				<th>流程时间</th>
				<th>流程状态</th>
				<th>操作 <a href="/baoxiao/web/ask/addnew">新增记录</a></th>
			</tr>
			<c:forEach var="a" items="${list}">
				<tr>
					<td>${a.askId}</td>
					<td>${a.askTitle}</td>
					<td>${a.askMoney}</td>
					<td>${a.askContent}</td>
					<td><fmt:formatDate value="${a.askTime}"
							pattern="yyyy/MM/dd HH:mm" /></td>
					<td><fmt:formatDate value="${a.map.task.createTime}"
							pattern="yyyy/MM/dd HH:mm" /></td>
					<td>${a.map.task.name}</td>
					<td><a href="">查看审批信息</a> <a
						href="/baoxiao/web/approve/pass?askid=${a.askId}&taskid=${a.map.task.id}">下一步</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<h1>认领任务</h1>
	<table align="center" width="60%" cellspacing="0px">

		<tbody>
			<tr>
				<th>编号</th>
				<th>标题</th>
				<th>报销金额</th>
				<th>报销内容</th>
				<th>申请时间</th>
				<th>流程时间</th>
				<th>流程状态</th>
				<th>候选审批人</th>
				<th>操作</th>
			</tr>
			<c:forEach var="a" items="${glist}">
				<tr>
					<td>${a.askId}</td>
					<td>${a.askTitle}</td>
					<td>${a.askMoney}</td>
					<td>${a.askContent}</td>
					<td><fmt:formatDate value="${a.askTime}"
							pattern="yyyy/MM/dd HH:mm" /></td>
					<td><fmt:formatDate value="${a.map.task.createTime}"
							pattern="yyyy/MM/dd HH:mm" /></td>
					<td>${a.map.task.name}</td>
					<td><c:forEach var="g" items="${a.map.group }">
							[${g.userId}]
						</c:forEach></td>
					<td><a href="">查看审批信息</a> <a
						href="/baoxiao/web/approve/pass?askid=${a.askId}&taskid=${a.map.task.id}">领取并批改</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>


</body>
</html>